package com.woniu.mashangxiadan.management.controller;

import com.woniu.mashangxiadan.common.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(tags = "后台管理的Api", description = "提供后台管理相关的 Rest API")
@RequestMapping("/management")
public class ManagementController {

    @GetMapping("/getRestaurants")
    @ApiOperation("得到餐馆列表,分页查询")
    public Result getRestaurants(Integer current, Integer size) {
        return Result.success();
    }

    @GetMapping("/getOrders")
    @ApiOperation("得到订单列表,分页查询")
    public Result getOrders(Integer current, Integer size) {
        return Result.success();
    }

    @GetMapping("/getUsers")
    @ApiOperation("得到用户列表,分页查询")
    public Result getUsers(Integer current, Integer size) {
        return Result.success();
    }

    @GetMapping("/getPlatformIncome")
    @ApiOperation("得到平台收入列表,分页查询")
    public Result getPlatformIncome(Integer current, Integer size) {
        return Result.success();
    }

    @PostMapping("/addNewTag")
    @ApiOperation("添加新的菜品标签")
    public Result addNewTag(String tagName) {
        return Result.success();
    }

    @PutMapping("/updateTag")
    @ApiOperation("修改菜品标签")
    public Result updateTag(Integer tagId, String tagName) {
        return Result.success();
    }

    @PostMapping("/addNewRestaurantType")
    @ApiOperation("添加新的商店分类")
    public Result addNewRestaurantType(String RestaurantTypeName) {
        return Result.success();
    }

    @PutMapping("/updateRestaurantType")
    @ApiOperation("修改商店分类")
    public Result updateRestaurantType(Integer RestaurantTypeId, String RestaurantTypeName) {
        return Result.success();
    }

}
